<template>
	<div class='home'>
		<component :is="component" />
	</div>
</template>

<script>
import Parent from './Parent.vue'
import Child from './Child.vue'
import Younger from './Younger.vue'
export default {
  route: {
    meta: {
      needLogin: true
    }
  },
  components: {
    Parent,
    Child,
    Younger
  },
  computed: {
    component() {
      const user = this.$storeGet('getMyInfo')

      console.log(user)
      return user.role
    }
  }
}
</script>
